package com.cat.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "用户查询条件实体")
public class UserQuery extends PageQuery{

    @Schema(description = "用户名关键字")
    private String username;

//    @Schema(description = "身份证")
//    private Long idCard;

    @Schema(description = "最大年龄")
    private Integer maxAge;

    @Schema(description = "最小年龄")
    private Integer minAge;

    @Schema(description = "用户状态：1-正常，2-冻结")
    private Integer status;

    @Schema(description = "性别")
    private Integer gender;

    private Integer type;

    @Schema(description = "最早创建时间")
    @JsonFormat(shape = JsonFormat.Shape.BINARY,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "最迟创建时间")
    @JsonFormat(shape = JsonFormat.Shape.BINARY,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;




}
